package design.principles.ocp;

public class OpenCloseTest {
    public static void main(String[] args) {
        JavaDiscountCource javaDiscountCource=new JavaDiscountCource(123,"大数据",1200.0);
        System.out.println("课程信息");
        System.out.println(javaDiscountCource);
        double discountPrice=javaDiscountCource.getPrice(0.75);
        System.out.println("打折后的价格是："+discountPrice);
    }
}
